package com.example.restdemo.entity;

/**
 * Created by 张少昆 on 2017/12/5.
 */
public class Book {
    private String id;
    private String name;
    private String title;
    private String author;
    private Double price;

    public String getId(){
        return id;
    }

    public void setId(String id){
        this.id = id;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    public String getTitle(){
        return title;
    }

    public void setTitle(String title){
        this.title = title;
    }

    public String getAuthor(){
        return author;
    }

    public void setAuthor(String author){
        this.author = author;
    }

    public Double getPrice(){
        return price;
    }

    public void setPrice(Double price){
        this.price = price;
    }

    @Override
    public String toString(){
        return "Book{" +
                       "id='" + id + '\'' +
                       ", name='" + name + '\'' +
                       ", title='" + title + '\'' +
                       ", author='" + author + '\'' +
                       ", price=" + price +
                       '}';
    }
}
